<template>
	<view class="jsOrderdetail">
		<view class="statusBox">
			<image :src="imaurl+'d5.png'" style="width: 48rpx;height: 48rpx;" mode=""></image>
			<view v-if="pageData.status ==1" class="" style="margin-left: 20rpx;">
				待代收中转中上门取鸽
			</view>
			<view v-if="pageData.status ==2" class="" style="margin-left: 20rpx;">
				代收中转中已取鸽，待发出
			</view>
			<view v-if="pageData.status ==3" class="" style="margin-left: 20rpx;">
				代收中转中已发出，待公棚接收
			</view>
			<view v-if="pageData.status ==4" class="" style="margin-left: 20rpx;">
				您的鸽子已到达公棚，寄送已完成
			</view>
		</view>

		<view class="jsmessage_content">
			<view class="messageItem">
				<view class="lable">
					代收中转中心
				</view>
				<view class="value">
					{{pageData.dlname}}
				</view>
			</view>

			<view class="messageItem">
				<view class="lable">
					联系方式
				</view>
				<view class="value">
					{{pageData.dlmobile}}
				</view>
			</view>
			<view class="messageItem">
				<view class="lable">
					公棚
				</view>
				<view class="value">
					{{pageData.gpname}}
				</view>
			</view>
		</view>



		<view class="jsmessage_content">
			<view class="titleBox">
				<view class="shu"></view>
				<view class="">
					鸽子信息
				</view>
			</view>
			<view class="contentitem">
				<view class="item">
					<view class="lable">
						环号
					</view>
					<view class="value" style="width: 300rpx;">
						{{pageData.ring}}
					</view>
				</view>
				<view class="item">
					<view class="lable">
						羽色
					</view>
					<view class="value" style="width: 220rpx;">
						{{pageData.color}}
					</view>
				</view>
			</view>
			<view class="other">
				<view class="lable">
					其他
				</view>
				<view class="value">
					{{pageData.other}}
				</view>
			</view>
		</view>

		<view class="jsmessage_content">
			<view class="titleBox">
				<view class="shu"></view>
				<view class="">
					我的地址
				</view>
			</view>

			<view class="addressBox">
				<view class="nameprice">
					<text>{{pageData.my_name}}</text><text>{{pageData.my_mobile}}</text>
				</view>
				<view class="addresstext">
					{{pageData.my_address}}
				</view>
			</view>
		</view>


		<view class="jsmessage_content">
			<view class="titleBox">
				<view class="shu"></view>
				<view class="">
					订单信息
				</view>
			</view>
			<view class="messageItem">
				<view class="lable">
					寄送编号
				</view>
				<view class="value">
					{{pageData.order_sn}}
				</view>
			</view>

			<view class="messageItem">
				<view class="lable">
					提交时间
				</view>
				<view class="value">
					{{pageData.addtime}}
				</view>
			</view>
		</view>

	</view>
</template>

<script>
	import {
		sendorderinfo
	} from "@/api/api.js"
	export default {
		data() {
			return {
				pageId: "",
				pageData: {},
				imaurl: "https://szgb.tongchengbang.cc/img/image/",
			}
		},
		onLoad(options) {
			this.pageId = options.id
			// console.log("333", this.pageId)
			this.handlesendorderinfo()
		},
		methods: {
			async handlesendorderinfo() {
				let res = await sendorderinfo({
					id: this.pageId
				})
				this.pageData = res.data
			},

		}
	}
</script>

<style scoped lang="scss">
	.jsOrderdetail {
		.statusBox {
			width: 750rpx;
			height: 108rpx;
			background: #FFF5CC;
			padding: 30rpx;
			box-sizing: border-box;
			display: flex;
			align-items: center;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			font-size: 32rpx;
			color: #333333;
			// line-height: 38rpx;
		}

		.titleBox {
			font-family: PingFang SC, PingFang SC;
			font-weight: 800;
			font-size: 32rpx;
			color: #333333;
			line-height: 38rpx;
			display: flex;
			align-items: center;

			.shu {
				width: 8rpx;
				height: 32rpx;
				background: #00BF52;
				border-radius: 200rpx 200rpx 200rpx 200rpx;
				margin-right: 20rpx;
			}
		}

		.jsmessage_content {
			width: 750rpx;
			background: #FFFFFF;
			padding: 30rpx;
			box-sizing: border-box;
			margin-top: 20rpx;

			.contentitem {
				display: flex;
				align-items: center;
				margin-top: 30rpx;
				justify-content: space-between;

				.item {
					display: flex;
					align-items: center;
					// width: 50%;

					.lable {
						font-family: PingFang SC, PingFang SC;
						font-weight: 400;
						font-size: 28rpx;
						color: #333333;
						line-height: 33rpx;
					}

					.value {
						width: 254rpx;
						height: 80rpx;
						background: #F6F6F6;
						border-radius: 20rpx 20rpx 20rpx 20rpx;
						padding: 20rpx;
						box-sizing: border-box;
						font-family: PingFang SC, PingFang SC;
						font-weight: 400;
						font-size: 28rpx;
						color: #333333;
						margin-left: 20rpx;
					}
				}

			}

			.other {
				display: flex;
				align-items: center;
				margin-top: 30rpx;

				.lable {
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 28rpx;
					color: #333333;
					line-height: 33rpx;
				}

				.value {
					width: 614rpx;
					height: 80rpx;
					background: #F6F6F6;
					border-radius: 20rpx 20rpx 20rpx 20rpx;
					padding: 20rpx;
					box-sizing: border-box;
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 28rpx;
					color: #333333;
					margin-left: 20rpx;
				}
			}

			.addressBox {
				width: 690rpx;
				height: 160rpx;
				// background: #F6F6F6;
				border-radius: 20rpx 20rpx 20rpx 20rpx;
				margin-top: 20rpx;
				padding: 30rpx;
				box-sizing: border-box;

				.nameprice {
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 28rpx;
					color: #333333;
					line-height: 33rpx;
				}

				.addresstext {
					width: 584rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 24rpx;
					color: #666666;
					line-height: 28rpx;
					margin-top: 18rpx;
				}
			}

			.messageItem {
				display: flex;
				align-items: center;
				justify-content: space-between;
				margin-top: 30rpx;

				.lable {
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 28rpx;
					color: #666666;
					line-height: 33rpx;
				}

				.value {
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 28rpx;
					color: #333333;
					line-height: 33rpx;
				}
			}


		}
	}
</style>